﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Decorator.StudentStudy.Models
{
    public class StudentDecoratorEat : BaseDecorator
    {
        public StudentDecoratorEat(AbstractStudent student) : base(student)
        {
        }

        /// <summary>
        /// 学习
        /// </summary>
        public override void Study()
        {
            Console.WriteLine("学习前吃点东西");

            base.Study();
        }
    }
}
